package code.Array;

import java.math.BigInteger;
import java.util.ArrayList;
import java.util.List;

public class findDisappearedNumbers {
    public static void main(String[] args) {
        //int[] nums = {4, 3, 2, 7, 8, 2, 3, 1};
        //System.out.println(getResult(nums));
        byte myByte = 45;
        Byte b  = Byte.valueOf(myByte);
        System.out.println(b);
    }

    private static List<Integer> getResult(int[] nums) {
        List<Integer> res = new ArrayList<>();
        int n = nums.length;
        for (int num : nums) {
            int x = (num - 1) % n;
            nums[x] += n;
        }
        for (int i = 0; i < n; i++) {
            if (nums[i] <= n) {
                res.add(i + 1);
            }
        }
        return res;
    }
}
